Semiconductor integrated circuit device

ABSTRACT

Means for changing-over address signals is provided in an address input portion, and the order of the signals to be input to an address decoder is changed according to external control signals. Alternatively, a reading output circuit is provided which reads data in bit unit different from that of the writing input circuit. Thus, data can be read and written even when the number of bits of data differs between in case of accessing a built-in memory of an LSI inside the LSI and in case of accessing it from outside the LSI.

This is a continuation of copending application Ser. No. 07/219,736, filed on July 15, 1988, now U.S. Pat. No. 4,989,185, issued Jan. 29, 1991.

BACKGROUND OF THE INVENTION

The present invention relates to a semiconductor integrated circuit device, and more particularly to techniques which are especially effective when applied to an address change-over system in a semiconductor memory device (hereinbelow, termed "memory"). By way of example, the techniques are effectively utilized for an LSI (large-scale integrated circuit) which has a built-in rewritable ROM (Read Only Memory).

In a conventional LSI such as single-chip microcomputer having a built-in EPROM (Erasable Programmable ROM) in which FAMOS (floating-gate avalanche injection MOS) FETs are used as storage elements, addresses have been common to the operation of reading data from within the EPROM and the operation of writing data into the EPROM by means of an EPROM writer, and both the reading and writing of the data have been performed in, for example, 8- bit unit. Refer to, for example, "Hitachi Microcomputer Data Book, 8-bit Single Chip" p. 823-p. 861, issued by Hitachi, Ltd. in August 1984.

With enhancements in the functions of the single-chip microcomputer, the internal data bus of the LSI is sometimes configured of 16 bits so that data can be read out of the EPROM in word (16-bit) unit.

In this case, without any contrivance, data cannot be written into the built-in EPROM by the use of the conventional EPROM writer for 8 bits. It is accordingly necessary to develop an EPROM writer for 16 bits anew or to cope with the situation through software so that the data can be written using the EPROM writer for 8 bits.

However, the method in which the EPROM writer for 16 bits is developed anew is costly. On the other hand, the method in which the situation is coped with in software fashion has the drawback that a period of time required for the writing becomes longer.

Moreover, in a case where the capacity of the internal data bus of the LSI having the built-in EPROM is to be more enlarged into 32 bits, it is necessitated to develop an EPROM writer again or to alter the software.

SUMMARY OF THE INVENTION

An object of the present invention is to provide a memory which is suited to be built in an LSI.

Another object of the present invention is to make it possible that data items are read and written easily and smoothly without altering an external device (for example, the construction of a writer) or preparing software for an external device even when the number of bits of data to be read out of a memory built in an LSI differs between in case of accessing the memory inside the LSI and in case of accessing it from outside the LSI.

The above and other objects and novel features of the present invention will become apparent from the description of this specification and the accompanying drawings.

Typical aspects of performance of the present invention are summarized as follows:

An address input portion is provided with means for changing-over address signals so that the order of the signals to be input to an address decoder can be changed in conformity with an external control signal.

According to the expedient described above, addresses are changed-over in, for example, the way that when an EPROM inside an LSI is to be accessed from outside the LSI, the address signals having been input are supplied to the EPROM as they are, whereas when the EPROM is to be accessed within the LSI, the address signals are supplied to the EPROM after each of the bits thereof is shifted one bit to the upper bit side. Thus, when the EPROM from which data is read in 16-bit unit in the access operation within the LSI is to be accessed by an EPROM writer from outside the LSI, data can be read and written in 8-bit unit, whereby the objects can be accomplished. Besides, another construction of the present invention consists in disposing a reading output circuit which reads data in the unit of the number of bits different from that of a writing input circuit.

That is, the present invention makes it possible to change-over the matrix arrayals of the EPROM at will, whereby even when the configuration of the internal data bus of the LSI is altered, data can be written using the existing EPROM writer as it is.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram showing an embodiment of a single-chip microcomputer which includes an EPROM;

FIG. 2A is a block diagram showing an embodiment of the EPROM according to the present invention as is included in the single-chip microcomputer;

FIG. 2B is a block diagram for explaining the EPROM in FIG. 2A;

FIG. 3 is a circuit diagram showing another embodiment of an address input portion in the EPROM;

FIG. 4 is a circuit diagram showing still another embodiment of the address input portion of the EPROM;

FIG. 5 is a block diagram showing another embodiment of an EPROM circuit according to the present invention;

FIG. 6 is a block diagram showing still another embodiment of the EPROM circuit according to the present invention; and

FIG. 7 is a block diagram showing yet another embodiment of the EPROM circuit according to the present invention.

DESCRIPTION OF THE PREFERRED EMBODIMENTS

Shown in FIG. 1 is an embodiment in the case where the present invention is applied to a single-chip microcomputer which uses an EPROM as an on-chip ROM. In the figure, various circuit blocks enclosed with a dot-and-dash line are formed on a single semiconductor substrate by well-known techniques for semiconductor integrated circuits. That is, the circuit blocks are formed on a single chip.

Although not especially restricted, the single-chip microcomputer of this embodiment comprises a microprocessor (hereinbelow, termed "CPU") 1 which controls the internal execution unit etc. thereof in accordance with programs, a ROM 2 in which the operation programs of the CPU 1, etc. are stored, a RAM (random access memory) 3 which principally offers the working space of the CPU 1, a timer circuit 4, a serial communication interface circuit (SCI) 5 which performs the serial communications between the microcomputer and external devices, and an input/output port 6. These constituent circuits are interconnected through an internal address bus 7a and an internal data bus 7b.

In addition, a control circuit 8 which determines the operation mode of the microcomputer and forms internal control signals corresponding thereto on the basis of a control signal supplied from outside is provided in the chip.

Although not especially restricted, the CPU 1 is constructed of a program counter in which the address of an instruction or data to be read out next is held, an instruction register into which the instructions of a program are fetched in order, a control portion which is made of a random logic circuit or a micro-ROM storing microprograms and which forms a control signal corresponding to the instruction fetched in the instruction register, and the execution unit which includes various registers such as accumulators, an ALU (arithmetic/logic unit), etc.

In this embodiment, the on-chip ROM 2 is constructed of a rewritable EPROM. This EPROM 2 is connected to the data bus 7b of 16 bits, and when accessed with address signals A₀ -A_(n-1) provided from the CPU 1, it delivers data of 16 bits onto the data bus 7b. On the other hand, the EPROM 2 can also be accessed through the input/output port 6 by any of an EPROM writer, etc. which are disposed outside the single-chip microcomputer. Indicated by symbols D₀ -D₇ in FIG. 1 are eight data input/output terminals. In the single-chip microcomputer of this embodiment, when a write mode for the EPROM 2 is designated by mode switching control signals MODE1 and MODE2 applied to the control circuit 8, data is read out of the EPROM 2 and delivered onto the data bus 7b in 8-bit unit with address signals A₀ -A_(n) which are supplied from the external EPROM writer. In this case, the data output terminals of the EPROM connected to, for example, the upper 8 bits of the data bus 7b are connectible also to the lower 8 bits thereof. In the write mode of the EPROM, the upper 8 bits in the 16-bit data bus 7b are rendered floating, and data is written into the EPROM 2 or is read therefrom by the use of only the lower 8 bits. In order to permit the change-over between the numbers of bits of data as described above, an EPROM input/output portion 2a which is constructed of an address change-over circuit, sense amplifiers, a train of column switches, etc. to be described later is provided at the connection part of the EPROM 2 with the address bus 7a as well as the data bus 7b.

FIG. 2A shows an embodiment of the practicable circuit of the EPROM 2 which is included in the single-chip microcomputer.

Although not especially restricted, the EPROM of this embodiment has an address decoder DCR supplied with complementary address signals a₁, a₁ -a_(n), a_(n) which are formed through address buffers ADB₁ -ADB_(n) receiving the address signals A₀ -A_(n). Here, the address signal A₀ can be supplied to a first address buffer ADB₀ and the second address buffer ADB1 through respective switch MOSFETs Q₁₀ and Q₂₁. In addition, the address signal A₁ can be supplied to the second address buffer ADB₁ and the third address buffer ADB₂ through respective switch MOSFETs Q₁₁ and Q₂₂. Thenceforth, connections are similarly made so that each of the address signals A₂ -A_(n-1) can be supplied to the two address buffers ADB_(i) and ADB_(i+1) through one pair of corresponding switch MOSFETs Q_(1i) and Q₂(i+1) (i =1, 2, . . . , n-1). The address signal A_(n) can be supplied to only the address buffer ADB_(n), and it is not supplied to any of the address buffers when the switch MOSFET Q_(2n) is turned "on" so as to supply the address signal A_(n-1) to the address buffer ADB_(n).

Each pair of switch MOSFETs Q_(1i) and Q₂(i+1) have either of them brought into the "on" state by change-over signals epm and epm from the control circuit (CONT) 8. The address decoder DCR forms select signals for the word lines W₁, W₂, . . . of a memory array M-ARY and select signals for column switching MOSFETs Q₃₁ -Q_(3m) on the data lines DL₀₁ -DL_(0m), . . . and DL₇₁ -DL_(7m) of the memory array M-ARY in accordance with the address signals which have been selectively supplied.

The data lines DL₀₁ -DL_(0m), . . . and DL₇₁ -DL_(7m) are respectively connected to the corresponding ones of eight common data lines CD₀ -CD₇ through the column selecting switch MOSFETs Q₃₁ -Q_(3m) which receive the select signals formed by the address decoder DCR. In addition, the output signals of writing data input circuits DIB₀ -DIB₇ which receive write signals applied from corresponding read/write terminals I/O₀ -I/O₇ are respectively supplied to write circuits PG₁₀ -PG₁₇ through switch MOSFETs Q₅₁, and write signals boosted to a write voltage V_(pp) are supplied to the common data lines CD₀ -CD₇. The output signals of the input circuits DIB₀ -DIB₇ can also be supplied to the common data lines of another memory mat through MOSFETs Q₅₂ as well as write circuits PG₂₀ -PG₂₇. Sense amplifiers SA₀ -SA₇ are respectively connected to the common data lines CD₀ -CD₇, and read data items amplified by the sense amplifiers SA₀ -SA₇ are delivered onto the internal data bus of the LSI through corresponding data buffers LDO₀ -LDO₇ which are dedicated to the reading. Further, the outputs of the sense amplifiers SA₀ -SA₇ are supplied to output buffers DOB₀ -DOB₇ through switch MOSFETs Q₄₁ so as to be deliverable to the read/write terminals IO₀ -I/O₇, respectively. Moreover, the output buffers DOB₀ -DOB₇ are respectively supplied with the corresponding ones of the eight sense amplifiers of the other memory mat through switch MOSFETs Q₄₂, alternatively to the output signals of the sense amplifiers SA₀ 14 SA₇.

In this embodiment, as illustrated in FIG. 2B, the output terminals of the data buffers LDO₀ -LDO₇ and the read/write terminals I/O₀ -I/O₇ are respectively connected in common to the signal lines b₀ -b₇ of the lower eight bits in the data bus 7b. It is also possible, however, that the data buffers LDO₀ -LDO₇ are connected to the internal data bus, while the read/write terminals I/O₀ -I/O₇ are connected to the external terminals of the IC. Besides, in this embodiment, the memory mats each having the construction of input/output in 8-bit unit as described above are disposed in the number of two, and the two memory mats M-M₁ and M-M₂ constitute one memory array M-ARY. Each memory mat M-M₁ (M-M₂) is furnished with the eight sense amplifiers SA₀ 14 SA₇ (SA₈ -SA₁₅), so that 8-bit data items can be read out in parallel as a whole. In FIG. 2A, only one M-M₁ of the two memory mats M-M₁ and M-M₂ is depicted. By the way, regarding the other memory mat M-M₂ not depicted in FIG. 2A, only the eight sense amplifiers SA₈ -SA₁₅ and succeeding data buffers LDO₈ -LDO₁₅ which are disposed in correspondence with this memory mat M-M2 are connected as illustrated in FIG. 2A. The memory mat M-M2 is connected to the signal lines b₈ -b₁₅ of the upper 8 bits of the internal data bus 7b through these sense amplifiers SA₈ -SA₁₅ and data buffers LDO₈ -LDO₁₅, so that when the switch MOSFETs Q₄₂ are brought into their "on" states, the output signals of the sense amplifiers SA₈ -SA₁₅ are respectively supplied to the output buffers DOB₀ -DOB₇ shown in FIG. 2A. Thus, the read data items of the memory mat M-M₂ are delivered onto the signal lines b₀ -b₇ of the lower 8 bits of the data bus 7b replacing the upper 8 bits b₈ - b₁₅ thereof. In this embodiment, each of the data buffers; LDO₀ -LDO₁₅ and the output buffers DOB₀ -DOB₇ is constructed of a tristate buffer. Each of the data buffers LDO₀ -LDO₁₅ has its operation controlled by the control signal epm, while each of the output buffers DOB₀ -DOB₇ has its operation controlled by the control signal epm. More specifically, when the control signal e,ovs/epm/ is at its high level, the data buffers LDO₀ -LDO₁₅ deliver output signals conforming to the input signals thereof through the output nodes thereof. In contrast, when the control signal epm is at its low level, the data buffers LDO₀ -LDO₁₅ bring the output nodes into the high impedance states thereof irrespective of the input signals. Meanwhile, when the control signal epm is at its high level, the output buffers DOB₀ -DOB₇ deliver output signals conforming to the input signals thereof through the output nodes thereof. In contrast, when the control signal epm is at its low level, the output buffers DOB₀ -DOB₇ bring the output nodes into the high impedance states thereof irrespective of the input signals. As will be described later, the control signal epm is set at the high level when the EPROM 2 is to be accessed by an external device (for example, EPROM writer). On this occasion, the control signal epm is set at the low level. On the other hand, when the EPROM 2 is to be accessed by any device inside the LSI, such as the CPU 1, the control signal epm is set at the high level. On this occasion, the control signal epm is set at the low level. In a case where the CPU 1 within the LSI has accessed the EPROM 2 in this way, the data items of the EPROM 2 are transmitted to the data bus 7b (signal lines b₀ -b₁₅) through the data buffers LDO₀ -LDO₁₅. Besides, in a case where the EPROM 2 has been accessed by the external device of the LSI, the data items of the EPROM 2 are transmitted to the data bus 7b (signal lines b₀ -b₇ ) through the output buffers DOB₀ -DOB₇.

In this embodiment, each of the buffers LDO₀ -LDO₁₅ and DOB₀ -DOB₇ is constructed of the tristate buffer as described before. Alternatively, it is allowed to employ an arrangement in which MOSFETs to be switched and controlled by the control signal epm are connected between the output nodes of the respective buffers LDO₀ -LDO₁₅ and the data bus 7b, while MOSFETs to be switched and controlled by the control signal epm are connected between the output nodes of the respective buffers DOB₀ -DOB₇ and the data bus 7b.

In FIG. 2B, for the brevity of the illustration, the change-over circuits constructed of the switch MOSFETs Q₄₁ and Q₄₂ are denoted by OS_(i) (i=0-7), and the change-over circuits constructed of the switch MOSFETs Q₅₁ and Q₅₂ are denoted by IS_(i) (i=0-7).

Further, although not especially restricted, the LSI of this embodiment is furnished with the input terminals of the mode switching control signals MODE1 and MODE2 in addition to those of a program control signal PGM, an out enable signal e,ovs/OE/ and a chip enable signal CE. The control circuit CONT (8) forms internal control signals we, oe, ce, epm, epm etc. for the circuit blocks inside the LSI, on the basis of the aforementioned control signals. V_(pp) indicates the write voltage referred to before. Among the internal control signals which are output from the control circuit CONT, the signal we is formed on the basis of the external control signals PGM and CE by way of example, and it affords a timing for activating the data input circuits DIB_(i) (i=0-7). In addition, the internal control signals ce and oe are formed on the basis of the external control signals OE and CE, and they afford timings for activating the sense amplifiers SA_(i) (i=0-15) and the data buffers LDO_(i) (i=0 -15) as well as the output buffers DOB_(i) (i=0 -7), respectively, though no special restriction is meant. In FIGS. 2A and 2B, the supply of the control signal oe to these buffers is omitted for the brevity of the illustration. Further, the internal control signals epm and epm are principally formed on the basis of the mode switching control signals MODE1 and MODE2 supplied from outside, and they turn "on" either of the switch MOSFETs Q₁₀ -Q1_(n) and Q₂₁ -Q_(2n) as the address change-over means and afford a timing for activating the address buffers ADB₀ -ADB_(n).

The LSI of this embodiment having the built-in in EPROM has the EPROM write mode designated by the mode switching control signals MODE1 and MODE2 when the EPROM writer is connected thereto. Thus, the internal control signal epm is set at the high level, and the internal control signal epm at the low level. Consequently, the switch MOSFETs Q₁₀ -Q_(1n) are brought into the "on" states, and the switch MOSFETs Q₂₁ -Q_(2n) into the "off" states. Thus, the address signals A₀ -A_(n) supplied from the external device (EPROM writer) not shown are respectively input to the address buffers ADB₀ -ADB_(n), to form the internal address signals a₀ -a_(n) and a₀ -a_(n). On the basis of the signals a₁ -a_(n) and a₁ -a_(n) among these internal address signals, one of the word lines in the memory array M-ary is selected, and the sixteen data lines are connected to the sense amplifiers SA_(i) (i=0-15) as well as the write circuits PG_(i) (i=10-17, 20-27). Concurrently, either the groups of switch MOSFETs Q₄₁ and Q₅₁ or Q₄₂ and are brought into the "on" states by the internal address signals a₀ and a₀ which are output from the address buffer ADB₀. As a result, data items are written into the memory array M-ARY through the terminals I/O₀ -I/O₇ in 8-bit unit and in parallel by the use of the EPROM writer. Reading for verification is also executed.

On the other hand, when a normal operation mode (of at least two sorts) in which the internal circuit (for example, EPROM 2) is put under the control of the CPU 1 is designated by the mode switching control signals MODE1 and MODE2 supplied from outside, the internal signal epm is set at the low level, and the internal signal epm is set at the high level. Thus, the address changing-over MOSFETs Q₁₀ -Q_(1n) are brought into the "off" states, and those Q_(21-Q) _(2n) into the "on" states. Consequently, the address signals A₀ -A_(n-1) supplied from the circuit inside the LSI, such as CPU 1, are respectively supplied to the address buffers ADB₁ -ADB_(n). That is, the address signals which are shifted one bit to the upper bit side with respect to the address signals in the EPROM writer mode are input to the address buffers of the EPROM 2. On this occasion, the address buffer ADB₀ is controlled by the internal signals epm and epm to have both the internal address signals a₀ to a₀ fixed to the low level. Thus, the sixteen data lines in the memory array M-ARY are respectively connected to the sixteen sense amplifiers SA_(i) (i=0-15), and data items of 16 bits are output from the data buffers LDO_(i) (i=0-15) onto the internal data bus 7b. On this occasion, the output buffers DOB_(i), write circuits PG_(i) and input buffers DIB_(i) are brought into the non-operating states thereof by the internal control signals oe and we though no special restriction is intended.

In this manner, in the single-chip microcomputer of the embodiment, the number of bits of the input/output data of the EPROM, namely, the number of bits of the data items to be input/output in parallel can be changed-over between 8 bits and 16 bits in the modes of the EPROM designated by the mode switching control signals MODE1 and MODE2 externally supplied, namely, in the mode of writing data into the EPROM and the normal mode (read mode except the verify mode). Thus, even when the internal data bus 7b is configured of 16 bits (bits or signal lines b₀ -b₁₅), data can be written into the EPROM 2 by the use of the EPROM writer for 8 bits.

Although the above embodiment has referred to the case of the internal data bus 7b configured of 16 bits, the present invention can also be applied to a case of an internal data bus configured of 32 bits by dividing the memory array into four memory mats by way of example.

Shown in FIG. 3is an example of arrangement of an address change-over portion in the case where the internal data bus 7b is of 32 bits. As seen from the figure, in this embodiment, the address signals A₀ -A_(n) are shifted two bits to the upper bit side and then input to the address buffers ADB₂ -ADB_(n) of the EPROM 2 in the normal mode by switch MOSFETs Q₁₀ -Q_(1n) and Q₂₂ -Q_(2n) which are respectively controlled by the internal control signals epm and epm. That is, the address signals A₀ -A_(n-2) are respectively input to the address buffers ADB₂ -ADB_(n). Meanwhile, although not shown in the figure, the memory array M-ARY is constructed of four memory mats M-M₁ thru M-M₄, from or into each of which data items of 8 bits can be read or written in parallel.

When the EPROM writer has been connected, the address signals A₀ and A₁ are respectively supplied to the address buffers ADB₀ and ADB₁ and are used for the formation of select signals for selecting one of the four memory mats. That is, on this occasion, the address signals A₀ and A₁ are used as address signals for specifying one memory mat from among the memory mats M-M₁ thru M-M₄.

In this embodiment, therefore, it becomes possible to change-over the input/output of data in 8-bit unit and the output of data in 32-bit unit (to change-over data).

Incidentally, in both the foregoing embodiments, the MOSFETs Q₁₀ -Q_(1n) and Q₂₂ -Q_(2n) as the address change-over means are disposed at the stages preceding the respective address buffers ADB₀ -ADB_(n). Alternatively, the address change-over means may well be disposed at the stages succeeding these address buffers, in other words, between the address buffers and the address decoder DCR.

Besides, in order to facilitate the description, the embodiments have been explained as constructing the memory array out of the plurality of mats. However, the construction of the memory array is not restricted thereto, but similar functional effects can be attained even with a memory array constructed of a single mat by applying the concept of the present invention thereto.

Further, in the embodiments, the address signals are shifted to the upper bit side and then input to the address buffers ADB in the normal mode. However, the address input portion may well be constructed as shown in FIG. 4, whereby the address signals are shifted to the lower bit side and then input to the address buffers ADB in the mode of writing data into the EPROM 2.

As thus far described, in the embodiments, the address input portion is furnished with the change-over means for the address signals, so that the order of the signals to be input to the address decoder DCR can be changed according to the external control signals. Thus, when the EPROM in the LSI is to be accessed from outside the LSI, the address signals having been input are supplied to the address decoder as they are, and when the EPROM is to be accessed within the LSI, the address is changed-over so that the respective bits of the address signals may be shifted one bit or two bits to the upper bit side and then supplied to the address decoder. Therefore, when the EPROM from which data is read in 16-bit unit or 32-bit unit in the internal access is to be accessed by the EPROM writer from outside, data is read or written in 8-bit unit. This produces the effect that data can be read and written easily and smoothly without altering any external device disposed outside the LSI or preparing software for the change-over of an address.

By the way, in the embodiments, the groups of switch MOSFETs Q₄₁ and Q₄₂ for switching the mats are disposed between the sense amplifiers SA and the output buffers DOB, but they may well be interposed between the common data lines CD and the sense amplifiers SA.

In addition, in the embodiments, the data buffers LDO₀ -LDO₇ and the output buffers DOB₀ -DOB₇ are separately disposed, but they may well be constructed of common buffers. By way of example, it is allowed to employ an arrangement in which the data buffers LDO₀ -LDO₇ are omitted and in which switching MOSFETs are additionally connected in parallel with the switching MOSFETs Q₄₁ and have their gates supplied with the control signal epm so as to be switched and controlled. In this case, to the end of permitting the output buffers DOB₀ -DOB₇ to function also as the data buffers LDO₀ -LDO₇, the output buffers DOB₀ -DOB₇ are constructed of tristate buffers whose states are controlled by the signal oe, not by the signal epm.

Shown in FIG. 5 is a block diagram of another embodiment of the on-chip EPROM according to the present invention.

A memory array M-ARY is so constructed that nonvolatile storage elements each having a stacked gate structure provided with a floating gate and a control gate are arranged in the shape of a matrix. The control gates of the stacked-gate transistors constituting the memory cells are coupled to word lines which are extended in the lateral direction as viewed in the figure. Besides, the drains of the stacked-gate transistors are coupled to data lines (bit lines or digit lines) which are extended in the vertical direction as viewed in the figure. The memory array M-ARY is formed of the memory matrix which is similar in construction to that of a known EPROM as stated above.

The word line of the memory array M-ARY is brought into the selected state thereof by an X-selector circuit XSEL. The X-selector circuit XSEL is constructed of a decoder circuit which receives X-address signals AX and decodes them. In the write operation of the EPROM, the select level of the word line is rendered a high voltage level of, for example, about 12 V necessary for the write operation, whereas in the read operation, it is rendered a comparatively low level of, for example, about 5 V. Therefore, the X-selector circuit XSEL has the level conversion function of forming the different select levels in accordance with the write mode and the read mode of the EPROM.

This embodiment is furnished with two Y-selector circuits YSEL1 and YSEL2 for writing and reading data in order that, while the write operation with a universal EPROM writer is realized, reading in the unit of any desired number of bits irrespective of the write operation may be permitted. More specifically, the data lines of the memory array M-ARY are subjected to select operations by the Y-selector circuit YSEL1 in the write mode. The writing Y-selector circuit YSEL1 is constructed of a decoder circuit (DCR) which receives writing Y-address signals AY1 and decodes them, and a column switching circuit (CW) which selects a plurality of data lines from within the memory array M-ARY in conformity with the outputs of the decoder circuit. By way of example, the universal EPROM writer not shown writes data in 8-bit (1-byte) unit, and hence, an input/output circuit IOB suited thereto is provided. In this case, the Y-selector circuit YSEL₁ performs the select operation of selecting eight of the data lines of the memory array M-ARY and connecting them to the input/output circuit IOB in accordance with the designated Y-address signals AY1.

The EPROM writer needs to perform the reading of the memory array M-ARY upon designating a verify mode or read mode for checking whether or not desired data has been written into the memory cells. To this end, the input/output circuit IOB is provided as stated above. For such write/read operations, column select signals which are formed by the decoder circuit (DCR) of the Y-selector circuit YSEL1 are brought for the write operation to a high voltage level of, for example, about 12 V so that write signals of high level can be transmitted to the data lines, and they are brought for the read operation to a comparatively low level of, for example, about 5 V. Therefore, the decoder circuit (DCR) has the level conversion function of forming the different select levels in accordance with the write mode and the read mode.

Owing to the input/output circuit IOB and the writing Y-selector circuit YSEL1, the operation of writing data into the memory array M-ARY in 8-bit unit can be performed using the universal EPROM writer. Besides, the read operation in 8-bit unit is possible for the verify mode. In this embodiment, the reading Y-selector circuit YSEL2 is provided in order that data and information processing procedures such as microprograms, which are stored in the memory array M-ARY, may be read in the unit of any desired number of bits as stated before.

The data lines of the memory array M-ARY are subjected to select operations by the Y-selector circuit YSEL2 when the read operation is performed by a circuit, such as CPU, formed on the same chip as that of the EPROM. The reading Y-selector circuit YSEL2 is constructed of a decoder circuit (DCR) which receives reading Y-address signals AY2 and decodes them, and a column selecting circuit (CW) which selects a plurality of data lines from within the memory array M-ARY in conformity with the output signals of the decoder circuit. By way of example, in a case where microprograms are stored in the memory array M-ARY and where each program word is configured of 32 bits (4 bytes), the Y-selector circuit YSEL2 suitably selects the data lines in 32-bit unit so as to perform the reading in 32-bit (4-byte) unit in conformity with the program word. That is, in accordance with the designated Y-address signals AY2, the Y-selector circuit YSEL2 selects thirty-two data lines from among the plurality of data lines of the memory array M-ARY, and it supplies the signals of the selected data lines to a read circuit RA so as to transmit them to, e.g., the microprogram decode circuit of the microprocessor CPU. The read circuit RA has sense amplifiers for amplifying (detecting) the data items on the selected data lines.

Incidentally, in this case, the operation of selecting the word line in the memory array M-ARY is the same as in the case of the read operation in the verify mode described above.

Since, in this embodiment, the two Y-selector circuits as data line selector circuits are arranged at both the ends of the data lines of the memory array M-ARY as illustrated in the figure, it is possible to perform the write operation employing the universal EPROM writer and the read operation in the unit of any desired number of bits irrespective of the bit unit of the write operation.

The number of bits of data items which are written in parallel at one time in the write operation, and the number of bits of data items which are read in parallel at one time for the circuit (such as CPU) formed on the same chip as that of the EPROM are unequal as described above. For this reason, the write data items in the write operation are, of course, written into the EPROM as data having a specified significance or in the divided form of the program word. That is, data or a program word of 16-bit length is decomposed into two parts each having 8 bits, and data or a program word of 32-bit length is divided into four parts, whereupon such parts are written in byte unit by, e.g., the EPROM writer from outside.

In the figure, symbol CTL denotes a control circuit which forms control signals epm, epm and we respectively similar to the control signals epm, epm and we described in the foregoing embodiments. The Y-selector circuit YSEL1 and the input/output circuit IOB are brought into their operating states when the control signal epm is at the high level. In contrast, the Y-selector circuit YSEL2 and the read circuit RA are brought into their operating states when the control signal epm is at the high level. Besides, the input/output circuit IOB is instructed to perform either the write operation or the read operation by the signal we.

FIG.6 shows a block diagram of another embodiment of the semiconductor memory device according to the present invention.

The circuit of the embodiment in FIG. 5 needs to be provided with the two Y-selector circuits YSEL1 and YSEL2, and therefore enlarges in scale to that extent. In this embodiment shown in FIG. 6, the writing and reading Y-selector circuits can be made common.

By way of example, in a case where, as in the preceding embodiment, the bit unit (the number of bits) of data items which are read for another circuit (such as CPU) formed in the identical LSI is set to be integral times (four times in the preceding example) relative to the bit unit (the number of bits) of data items which are supplied from outside the LSI in the write operation, column switching circuits are constructed in two stages. More specifically, the first column switches CW1 which are disposed in correspondence with the data lines of a memory array M-ARY operate to select the data lines in 32-bit unit (in the number of thirty-two). A first Y-decoder circuit YDCR1 is provided in correspondence with such column switches CW1. The Y-decoder circuit YDCR1 decodes address signals AY₂ -AY_(n) of upper bits except address signals AY₀ and AY₁ of the lowest two bits, and forms select signals to be supplied to the first column switches CW1. Laid on the output side of the first column switches CW1 are first common data lines CD1 which transmit information of 32 bits. The first common data lines CD1 are, on one hand, coupled to the input terminals of a read circuit RA, through which the information can be read in the unit of 32 bits at one time for another circuit (such as CPU) formed on the same chip as that of the EPROM. The read circuit RA has its operation controlled by the control signal epm described before, and it is brought into the operating state thereof when the EPROM is accessed from the circuit formed on the same chip as that of this EPROM.

The first common data lines CD1 are, on the other hand, coupled to the second column switches CW2 in order to perform a write operation (including a read operation for verification) in 8-bit unit. The second column switches CW2 operate to select every eight of the thirty-two common data lines CD1. More specifically, the second column switches CW2 select eight common data lines from among the first common data lines CD1 numbering thirty-two and couple the selected lines to second common data lines CD2 consisting of eight signal lines, in accordance with select signals which are formed by a second Y-decoder circuit YDCR2 receiving the address signals AY₀ and AY₁ of the lowest two bits.

The second common data lines CD2 are coupled to a writing input/output circuit IOB which transfers data in 8-bit unit.

The second decoder YDCR2 falls into the operating state thereof when the control signal epm is at the high level. On this occasion, it decodes the address signals AY₀ and AY₁. The input/output circuit IOB is also brought into the operating state thereof when the control signal is at the high level. The selection of either the write operation or the read operation is determined by the control signal we.

Thus, in the write operation, the second and first Y-decoder circuits YDCR2 and YDCR1 are brought into the operating states, and write data items of 8 bits supplied from the EPROM writer disposed outside the LSI are transmitted to the memory array M-ARY through the second column switches CW2 and first column switches CW1, whereby the write operation (including the read operation for the verify mode) in 8-bit unit can be performed.

In addition, when the read operation of the EPROM is performed by any circuit formed on the same chip as that of this EPROM, the second Y-decoder circuit YDCR2 is brought into the non-operating state thereof, and read signals of 32 bits delivered onto the first common data lines CD1 are output through the read circuit RA.

Since, in this embodiment, the first Y-decoder circuit YDCR1 and the first column switches CW1 can be used for both the write mode and the read mode as described above, the simplification of the Y-address selector circuitry becomes possible.

FIG. 7 shows a block diagram of another embodiment of the EPROM circuit according to the present invention.

In this embodiment, a memory array M-ARY is divided into two memory blocks. One of the memory blocks is constructed of unit memory blocks M100 thru M131. Each of the unit memory blocks M100 -M131 is constructed of pluralities of word lines and data lines, and nonvolatile storage elements disposed at the intersection points of the word lines and data lines. For the thirty-two unit memory blocks, the word lines are laid in common. Therefore, an X-decoder circuit XDCR1 for selecting the word lines is constructed of a single circuit. Two, column switching circuits are disposed in correspondence with the thirty-two memory blocks M100-M131. The column switches WCW1 for writing data select the data lines in such a manner that one data line is selected from each of four sets which consist of eight of the unit memory blocks M100 thru M107, M108-M115, M116-M123 and M124 -M131, respectively. That is, the data lines numbering eight are selected. The selected data lines are respectively connected with eight signal lines D0 thru D7 corresponding to a write circuit WA. In order to realize such a select operation, a Y-decoder circuit YDCR1W for writing data is provided. The write circuit WA corresponds to the input/output circuit IOB described before, and transfers signals (data items) between it and a universal EPROM writer.

The thirty-two unit memory blocks M100-M131 are furnished with the column switching circuit RCW1 for reading data. This column switching circuit RCW1 selects the data lines totaling thirty-two in such a manner that one data line is selected from among the plurality of data lines in each of the unit memory blocks M100-M131, and it couples the selected data lines to thirty-two output signal lines X32, respectively. Thus, the thirty-two data lines respectively corresponding to the thirty-two unit memory blocks are selected at one time. The read circuit RA (not shown) as described before is connected to the output signal lines X32.

In this way, one memory block constructed of the thirty-two unit memory blocks M100-M131 can be subjected to the write operation (including the verify/read mode) in 8-bit unit by the use of the X-decoder circuit XDCR1 and the writing decoder circuit YDCR1W as well as the column switching circuit WCW1 corresponding thereto. In addition, the memory block constructed of the thirty-two unit memory blocks M100-M131 can be subjected to the operation of reading data for the circuit formed on the same chip as that of the EPROM, in 32-bit unit by the use of the X-decoder circuit XDCR1 and a reading decoder circuit YDCR1R as well as the column switching circuit RCW1 corresponding thereto.

The other memory block is constructed of unit memory blocks M200 thru M212 similar to the foregoing. Although not especially restricted, the other memory block constructed of these unit memory blocks M200 -M212 is furnished with an X-decoder circuit XDCR2 which serves to select word lines extended in common. Thus, the two memory blocks can be selected with their own X-address signals.

Two, column switching circuits are disposed in correspondence with the memory block constructed of the thirteen unit memory blocks M200-M212, likewise to those of the memory block constructed of the thirty-two unit memory blocks M100-M131. The column switching circuit WCW2 for writing data selects data lines in such a manner that one data line is selected from each of eight of the thirteen unit memory blocks M200-M212, for example, either the unit memory blocks M200-M207 or M208-M215 (in which the unit memory blocks M213-M215 are not actually provided and are therefore regarded as virtual unit memory blocks), and it couples the eight selected data lines to the eight signal lines D0-D7 corresponding to the write circuit WA described before, respectively. In this case, regarding the three virtual unit memory blocks M213-M215, no column switches are disposed because signal lines to correspond thereto do not exist. Accordingly, in a write operation (including a verify/read mode) for the unit memory blocks M208-M212, data items in 8-bit unit are supplied through the signal lines D0 - D7 from the write circuit WA, but those of the data items corresponding to the signal lines D5-D7 are invalidated. In order to perform the select operation in this manner, a Y-decoder circuit YDCR2W for writing data is provided.

The thirteen unit memory blocks M200 thru M212 are furnished with the column switching circuit RCW2 for reading data. This column switching circuit RCW2 selects the data lines in such a manner that one of the plurality of data lines in each of the unit memory blocks M200-M212 is selected, and it couples the selected data lines to thirteen output signal lines X13, respectively. The read circuit RA (not shown) as described before is connected to the output signal lines X13.

In this way, the other memory block constructed of the thirteen unit memory blocks M200-M212 can be subjected to the write operation (including the verify/read mode) in 8-bit unit by the use of the X-decoder circuit XDCR2 and the writing decoder circuit YDCR2W as well as the column switching circuit WCW2 corresponding thereto. In addition, the memory block constructed of the thirteen unit memory blocks M200-M212 can be subjected to the read operation in 13-bit unit by the use of the X-decoder circuit XDCR2 and a reading decoder circuit YDCR2R as well as the column switching circuit RCW2 corresponding thereto.

As thus far described, the write circuit WA is made common to the plurality of memory blocks having the unequal numbers of unit memory blocks, thereby making it possible that, while data items are written into the respective memory blocks in 8-bit unit, data items are read out of the respective memory blocks in the units of any desired numbers of bits.

In addition, the write circuit WA is controlled by the control signal we and is brought into the operating state thereof in the write operation.

Although no special restriction is intended, the Y-decoders YDCR1W and YDCR2W are controlled by the control signal epm, and the Y-decoders YDCR1R and YDCR2R are controlled by the control signal epm in this embodiment as in the foregoing embodiments. Thus, the Y-decoders YDCR1W and YDCR2W are brought into the operating states thereof in the write operation (including the verify operation), whereas the Y-decoders YDCR1R and YDCR2R are brought into the operating states thereof in the read operation.

With the construction of this embodiment, in a case where information items having significances different from each other, such as data and program words, are respectively configured of any desired unequal numbers of bits and are stored in the separate EPROM areas, the operations of writing the information items into the individual EPROM areas can be performed by a single universal writer. It is also permitted that a circuit (for example, CPU) formed on the same chip as that of the EPROM reads information of required bit configuration from the EPROM at will.

Functional effects which are attained by the embodiments stated above, are as follows:

(1) A writing input circuit, and a reading output circuit which reads data in bit unit differing from that of the writing input circuit are provided, thereby to adapt the writing input circuit to a universal EPROM writer, whereby efficient writing becomes possible, and also reading in the unit of any desired number of bits becomes possible.

(2) Owing to the effect (1), a universal EPROM writer of 8 bits can be used for writing data into an on-chip EMPROM from which data is read in 16- or 32-bit unit in an internal operation, so that curtailment in a writing cost can be achieved.

(3) Since the number of bits of read data can be set irrespective of a write operation, the storage capacity of the memory array of an EPROM can be efficiently used, and the substantial packaging density of the EPROM can be heightened.

(4) Since the number of bits of read data can be set as desired, a semiconductor integrated circuit device having an information processing function, such as a single-chip microcomputer with a built-in EPROM, can be fabricated into multifarious systems.

Although, in the above, the invention made by the inventors has been concretely described in conjunction with embodiments, it is needless to say that the present invention is not restricted to the foregoing embodiments, but that it can be variously altered within a scope not departing from the purport thereof. By way of example, in FIG. 5 or FIG. 6, the data lines of the memory array M-ARY may well be divided into a plurality of blocks so as to read data items or program words having a plurality of sorts of numbers of bits. Besides, in FIG. 7, the word lines of the two memory blocks may well be made common so as to perform a select operation by means of a single X-address decoder. In addition, the number of the memory blocks is set at a number conforming to the sorts of data, program words, etc. to be stored.

Further, the external device for accessing the EPROM built in the LSI is not restricted to the EPROM writer, but it may well be any of another microcomputer, etc.

In the above, the invention made by the inventors has been principally described as to the application thereof to a single-chip microcomputer with a built-in EPROM as forms the background field of utilization. However, the present invention is not restricted thereto, but it can also be utilized for an LSI for communications having a built-in EPROM, an LSI in which an EEPROM or RAM being electrically erasable or a readable and writable memory other than the EPROM is built, and a semiconductor memory in the form of a single product. In a case where an on-chip memory is a RAM, a kind of data conversion operation may well be executed by the RAM in such a way that signals are written into the RAM through a signal bus configured of, for example, 8 bits (bytes), and that the signals are read out of the RAM as data which is configured of a plurality of bytes and endowed with a specified significance through the combination of the signals. 

What is claimed is:
 1. A semiconductor integrated circuit device having a memory area from and into which data can be read and written comprising address change-over means for changing a bit order between address signals which are supplied when said memory area is to be accessed from outside said integrated circuit device and address signals which are supplied when said memory area is to be accessed from inside said integrated circuit device, said address change-over means being constructed of transfer gates which shift respective bits of the supplied address signals to either an upper bit side or a lower bit side and then applies them to either address buffers or an address decoder.
 2. The semiconductor integrated circuit device according to claim 1, further comprising a decoder which decodes the address signals to be supplied to said memory area, and which is connected between said address change-over means and said memory area.
 3. The semiconductor integrated circuit device according to claim 1, further comprising an output buffer to which said data are selectively supplied, the data being read out of a plurality of individual memory blocks into which said memory area is divided.
 4. The semiconductor integrated circuit device according to claim 1, further comprising a first set of buffers which are equal in number to bits of the data read out of said memory area, a half of said first set of buffers having output terminals connected to bus signal lines common to said output buffer.
 5. In a single-chip microcomputer including an internal microprocessor, an internal data bus, and an internal electrically programmable read only memory having a memory array for storing first data selectively supplied to the internal microprocessor when the single-chip microcomputer is in a first operating mode, said first data being written to the electrically programmable read only memory from outside of the single-chip microcomputer as second data when the single-chip microcomputer is in a second operating mode, the improvement comprising:first external terminal means for receiving an externally generated input signal into the single-chip microcomputer; mode control circuit means, coupled to the first external terminal means, for selectively setting the single-chip microcomputer to a one of the fist and second operating modes responsive to the externally generated input signal; second external terminal means coupled to the internal data bus for receiving externally generated data into the internal electrically programmable read only memory when the single-chip microcomputer is in the second operating mode; and, bit-number setting means, in the electrically programmable read only memory and coupled to the mode control circuit means and to the internal data bus, for selectively providing the first data having a first bit length to the internal microprocessor when the single-chip microcomputer is in the first operating mode, and providing the second data having a second bit length based on said externally generated data to the memory array via the internal data bus when the single-chip microcomputer is in the second operating mode, wherein the second bit length is shorter than the first bit lengths.
 6. The single-chip microcomputer according to claim 5 wherein said memory array comprises a plurality of non-volatile MOS memory cells each having a floating gate and a control gate.
 7. A single-chip microcomputer including internally a microprocessor and an electrically programmable read only memory for storing data to be fed to the microprocessor when the single-chip microcomputer is in a first operating mode, wherein the data stored in the electrically programmable read only memory is written from outside of the single-chip microcomputer when the single-chip microcomputer is in a second operating mode, the single-chip microcomputer comprising:first external terminal means for receiving an externally generated input signal; mode control circuit means, coupled to the first external terminal means and responsive to the externally generated input signal for selectively setting the single-chip microcomputer to a one of the first ad second operating modes; second external terminal means for receiving externally generated data to be fed to the electrically programmable read only memory when the single-chip microcomputer is in the second operating mode; and, the electrically programmable read only memory comprising:a memory array having a plurality of memory cells, a plurality of word lines and a plurality of data lines, the plurality of word lines and the plurality of data lines each being coupled to a one of the plurality of memory cells that each one of the plurality of memory cells is coupled to one word line and to one data line, word line selecting circuit means for selecting one of the plurality of word lines, first data line selecting means for selecting first ones of the plurality of data lines as a first selected set of data lines, second data line selecting means for selecting second ones of the first selected set of data lines as a second selected set of data lines, the second selected set being smaller than the first selected set, read-out circuit means, coupled to the first selected set of data lines, for providing first data based on read-out data appearing on the first selected set of data lines to the microprocessor when the single-chip microcomputer is in said first operating mode, and input circuit means for providing second data, comprising the externally generated data received at said second external terminal means, to the memory array via the second selected set of data lines and a one of the first selected set of data lines electrically coupled to the second selected set of data lines when the single-chip microcomputer is in said second operating mode.
 8. A single-chip microcomputer according to claim 7 wherein the plurality of memory cells are non-volatile MOS memory cells each having a floating gate and a control gate.
 9. A single-chip microcomputer according to claim 8 wherein the externally generated data is data in 1-byte unit, and wherein the data supplied from the read-out circuit to the microprocessor is data in a plurality of bytes.
 10. A single-chip microcomputer according to claim 7 wherein the electrically programmable read only memory comprises means for storing microprograms, and wherein the read-out circuit means comprises means for providing a microprogram to said internal microprocessor.
 11. A single-chip microcomputer according to claim 10 wherein the microprocessor includes a microprogram decoder circuit receiving the microprograms.
 12. A single-chip microcomputer according to claim 7 wherein the second external terminal means comprise means for receiving externally generated data supplied from a writer external to the single-chip microcomputer.
 13. A single-chip microcomputer according to claim 7 wherein the electrically programmable read only memory further includes an output circuit means, coupled to the second external terminal means, for providing the second data supplied from the second selected set of data lines to the second external terminal means, wherein the second operating mode includes i) a write mode in which the read-out circuit means is operated and ii) a read mode in which the output circuit is operated.
 14. In a single-chip microcomputer including a microprocessor and an electrically programmable read only memory for storing data to be fed to the microprocessor when the single-chip microcomputer is in a first operating mode, wherein the data stored in the electrically programmable read only memory is written from outside of the single-chip microcomputer when the single-chip microcomputer is in a second operating mode, the improvement comprising:first external terminal means for receiving an externally generated input signal; mode control circuit means, coupled to the first external terminal means and responsive to the externally generated input signal, for selectively setting the single-chip microcomputer to one of the first and second operating modes; second external terminal means for selectively receiving externally generated data to be fed to the electrically programmable read only memory when the single-chip microcomputer is in the second operating mode; and, the electrically programmable read only memory comprising:a memory array having a plurality of memory cells, a plurality of word lines and a plurality of data lines, the plurality of word lines and the plurality of data lines each being coupled to one of the plurality of memory cells so that each one of the plurality of memory cells is coupled to one word line and to one data line, word line selecting circuit means for selecting one of the plurality of word lines, first data line selecting means for selecting first ones of the plurality of data lines, second data line selecting means for selecting second ones of the first ones of the plurality of data lines, wherein the number of the selected second ones is smaller than that of the selected first ones of the plurality of data lines, read-out circuit means, coupled to the selected first ones of the plurality of data lines, for providing first data based on read-out data appearing on the selected first ones of the plurality of data lines to the microprocessor when the single-chip microcomputer is in the first operating mode, and input circuit means for providing second data based on the externally generated data to the memory array via the selected second ones of the plurality of data lines when the single-chip microcomputer is in the second operating mode.
 15. A single-chip microcomputer according to claim 14 wherein the plurality of memory cells are non-volatile MOS memory cells each having a floating gate and a control gate.
 16. A single-chip microcomputer according to claim 14 wherein the electrically programmable read only memory comprises means for storing a microprogram, and wherein the read-out circuit means comprises means for providing a microprogram to the microprocessor.
 17. A single-chip microcomputer according to claim 16 wherein the microprocessor includes microprogram decoder circuit means for receiving microprograms.
 18. A single-chip microcomputer according to claim 14 wherein the externally generated data is data in 1-byte unit, and wherein the data supplied from the read-out circuit to the microprocessor is data in a plurality of bytes.
 19. A single-chip microcomputer according to claim 14 wherein the second external terminal means comprise means for receiving externally generated data supplied from a writer external to the single-chip microcomputer.
 20. A single-chip microcomputer according to claim 14 wherein the electrically programmable read only memory further includes an output circuit means, coupled to the second external terminal means, for providing the second data supplied from the selected second set of data lines to the second external terminal means, wherein the second operating mode includes i) a write mode in which the read-out circuit means is operated and ii) a read mode in which the output circuit means is operated. 